package com.hz.utils;


import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

@ControllerAdvice
@ResponseBody

public class BizExceptionHandle {

    @ExceptionHandler(BisException.class)
    public ResultData handleHttpMessageNotReadableException(BisException ex) {
        //返回异常处理
        return ResultUtils.error(ex.getMessage(), null);
    }
}
